<h1>Elenco proposte</h1>

<table>
  <tr>
    <th>Id</th>
    <th>Titolo</th>   
  </tr>

<% @proposals.each do |proposal| %>
  <tr>
    <td><%=h proposal.id %></td>
    <td><%=h proposal.title %></td>
    
    <td><%= link_to 'Mostra', proposal %></td>
    <td><%= link_to 'Modifica', edit_proposal_path(proposal) %></td>
    <td><%= link_to 'Cancella', proposal, :confirm => 'Sei sicuro?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Nuova proposta', new_proposal_path %>